
import * as url from "./url"
import { get, post } from "./http";
/**
 * 
 * @param{*} 商品详情
 */
export const getGoodsDetails = params=>{
 return get(url.GoodsDetail, params);
}
/**
 * 
 * @param{*} 取消关注 用户
 */
export const isFocusUser = params=>{
 return post(url.FocusUser, params);
}
/**
 * 
 * @param{*} 接口
 */
export const confirmOrder = params => {
  return post(url.confirmOrder, params);
}
/**
 * 
 * @param{*} 获取短信验证码接口
 */
export const getSms = params => {
  return post(url.getSms, params);
}
/**
 * 
 * @param{*} 用户手机号登录
 */
export const userLogin = params => {
  return post(url.userLogin, params);
}
/**
 * 
 * @param{*} 分享商品链接
 */
export const goodsShare = params => {
  return get(url.goodsShare, params);
}
/**
 * 
 * @param{*} 淘口令
 */
export const getPassword = params => {
  return get(url.goodsPassword, params);
}
/**
 * 
 * @param{*} 淘口令
 */
export const collectGood = (params) => {
			return get(url.collectGood, params);
    };
/*
 * @param{*} 计算价格
 */
export const computedPirce = params => {
  return get(url.computedPirce, params);
}
/*
 * @param{*} 创建订单
 */
export const buildOrder = params => {
  return post(url.buildOrder, params);
}
/*
 * @param{*} 创建订单
 */
export const payType = (urlGet, params) => {
  return get(urlGet, params);
}
/*
 * @param{*} 获取订单详情
 */
export const getOrderDetail = (urlGet, params) => {
  return get(urlGet, params);
}
/**
 * 
 * @param{*} 用户手机号登录
 */
export const isLogin = params => {
  return get(url.isLogin, params);
}
/**
 * 
 * @param{*} 
 */
export const inviteTest = params => {
  return post(url.inviteTest, params);
}
/**
 * 
 * @param{*} 下载app地址
 */
export const appDown = params => {
  return get(url.appDown, params);
}
/**
 * 
 * @param{*} 获取平台公告
 */
export const getNnotice = params => {
  return get(url.getNnotice, params);
}
/**
 * 
 * @param{*} 获取邀请者信息
 */
export const getSinInfo = params => {
  return get(url.getSinInfo, params);
}
/**
 * 
 * @param{*} 邀请好友绑定手机
 */
export const inviteBind = params => {
  return post(url.inviteBind, params);
}